<template>
    <router-view></router-view>
</template>
<script>
import {
    useMessage,
    useDialog,
    useNotification,
    useLoadingBar,
} from "naive-ui";

import config from "@/config";

export default {
    setup() {
        window.$message = useMessage();
        window.$dialog = useDialog();
        window.$notification = useNotification();
        window.$loadingBar = useLoadingBar();
        return {};
    },
    mounted() {
        //设置主题色
        // let primaryColor = localStorage.getItem("primaryColor");
        // document.documentElement.style.setProperty(
        //     "--primary-color",
        //     primaryColor || config.primaryColor
        // );
    },
};
</script>
<style lang="less">
.app-page {
    height: 100vh;
}
</style>
